//
//  MyAnnotation.m
//  SHShopping
//
//  Created by 坤鼎 on 2019/9/17.
//  Copyright © 2019 kunding. All rights reserved.
//

#import "MyAnnotation.h"

@implementation MyAnnotation

- (instancetype)initWithAnnotationModelWithDict:(NSDictionary *)dict {
    self = [super init];
    if (self) {
        self.coordinate = CLLocationCoordinate2DMake([dict[@"lat"] doubleValue], [dict[@"lng"] doubleValue]);

        self.titleAnno = [NSString stringWithFormat:@"%@", DSStringValue(dict[@"title"])];
        self.subTitleAnno = DSStringValue(dict[@"subTitle"]);
        self.imgUrl = DSStringValue(dict[@"imgUrl"]);
    }
    return self;
}

@end
